package cn.tedu.thread.service;

import cn.tedu.thread.ThreadLocalContext;
import cn.tedu.thread.repository.HelloRepository;

public class HelloService {
    private HelloRepository helloRepository=new HelloRepository();
    public String sayHi(String name) {
        String age = ThreadLocalContext.get();
        System.out.println("仓储层拿到age:"+age);
        String result=helloRepository.sayHi(name);
        return result;
    }
}
